from django.conf.urls import url
from django.conf import settings
from django.conf.urls.static import static
from .import views


urlpatterns = [
    url(r'^$', views.index, name='index'),
    url(r'^idcs/$', views.idcs, name='idcs'),
    url(r'^idcs/(?P<idc_id>\d+)/$', views.idc, name='idc'),
    url(r'^new_idc/$', views.new_idc, name='new_idc'),
    url(r'^new_host/(?P<idc_id>\d+)/$', views.new_host, name='new_host'),
    url(r'^edit_host/(?P<host_id>\d+)/$', views.edit_host, name='edit_host')
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
